home *** CD-ROM | disk | FTP | other *** search
- /*
- ### procedure for selecting a helping option ###
-
- */
-
- #include <stdio.h>
- #include <suntool/sunview.h>
- #include <suntool/textsw.h>
- #include <suntool/panel.h>
-
- void query_option_proc(item,value,event)
- Panel_item item;
- int value;
- Event *event;
- {
- FILE *fp,*fopen();
- extern Textsw query_textsw;
- extern Textsw_status query_status;
- extern int query_option;
- extern char full_path[],dir_name[],file_name[];
-
- query_option = value;
- sprintf(full_path,"%s/tmp.query",dir_name,file_name);
- fp = fopen(full_path,"w");
- if(query_option==0){
- printf
- }
- else if(query_option==1){
- }
- fclose(fp);
- window_set(query_textsw,
- TEXTSW_STATUS, &query_status,
- TEXTSW_FILE,full_path,
- TEXTSW_FIRST,0,
- 0);
- if(query_status == TEXTSW_STATUS_CANNOT_OPEN_INPUT){
- sprintf(string,"Help file (%s/%d) does not exist!\n",query_dir,query_option);
- system_mess_proc(1,string);
- }
- }
-